package nju.mscs.data.object;

import java.io.Serializable;

public abstract class Promotion implements Serializable{
	protected String id;
	protected int type;
	protected Date beginTime;
	protected Date overTime;
	public final static int TotalDiscountPromotion = 1;
	public final static int TotalGiftPromotion = 3;
	public final static int GoodsDiscountPromotion = 0;
	public final static int GoodsGiftPromotion = 2;
	Promotion(String id,int type,Date begin,Date over) {
		this.id = id;
		this.type = type;
		this.beginTime=begin;
		this.overTime=over;
	}
	public int  getType(){
		return this.type;
	};
	public String getId(){
		return id;
	}
	public Date getBeginTime() {
		return beginTime;
	}
	public Date getOverTime() {
		return overTime;
	}
}
